/*
 * Array3D.h
 *
 *  Created on: 05/04/2009
 *      Author: fabricio
 */

#ifndef ARRAY3D_H_
#define ARRAY3D_H_

#include "Array.h"
#include "Array2D.h"

template <class T>
class Array3D
{
	protected:
		unsigned int mX;
		unsigned int mY;
		unsigned int mZ;
		Array<Array2D> array;
		Array2D<T> array2D;
	public:
		Array3D(unsigned int x, unsigned int y, unsigned int z):mX(x), mY(y), mZ(z), array(x), array2D(y,z){}

		Array2D<T> operator[] (unsigned int x)
		{
			return array[x];
		}

};

#endif /* ARRAY3D_H_ */
